<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    {#输出的是msg的文本内容#}
    {{ msg }}
    <hr>
    {#    输出的是a标签 #}
    <span v-html="msg"></span>
</div>

<script src="js/vue.min.js"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            msg: "<a href=\"\">百知教育</a>\n"
        },
    })
</script>
</body>
</html>